<?php
if(!empty($channels['data'])){
	foreach($channels['data'] as $key=>$channel){
?>
	
<li class="span3">
	<div class="thumbnail" onclick="window.location.href='<?php echo Yii::app()->createUrl('/detail?cId='.outStr($channel->id));?>'">
		<img data-src="holder.js/300x200" alt="300x200" style="height:150px;" src="<?php echo Yii::app()->baseurl."/upload/images/".$channel->logo;?>" >
		<div class="caption">
			<h6><a href="<?php echo Yii::app()->createUrl('/detail?cId='.outStr($channel->id));?>"><?php echo $channel->name;?></a></h6>
			<!--<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam.</p>-->
		</div>
		<div>
			<a href="<?php echo Yii::app()->createUrl('/buynow?cId='.outStr($channel->id));?>" class="btn btn-info">
				Buy now!
			</a>
		</div>
	</div>
</li>
	
<?php
	}
}
?>